package com.gs.gaosheng.controller;

import com.gs.common.core.domain.AjaxResult;
import com.gs.gaosheng.service.impl.GsDrawServiceImpl;
import io.lettuce.core.dynamic.annotation.Param;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/gaosheng/draw")
public class GsDrawController {

    @Autowired
    private GsDrawServiceImpl gsDrawService;

    /**
     * 抽奖程序
     */
    @RequestMapping("/start")
    public Integer draw(@Param("userAccount") String userAccount) {
        Integer score = gsDrawService.draw(userAccount);
        return score;
    }

}
